package B;

import java.util.ArrayList;

public class Test3 {
    public static void main(String[] args) {
        ArrayList<Integer> ints = new  ArrayList<>();
        int[] arr = {1,2,3,4,5,6,7,7};
        ints = listTest(arr);
    }
    public static ArrayList<Integer> listTest(int[] arr){
        ArrayList<Integer> list = new ArrayList<>();
        for (Integer i:arr) {
            list.add(i);
        }
        return list;
    }
}
